<ion-view id="orderDetail-view" hide-nav-bar="true" view-title="和护健康"  id="myself">

    <ion-header-bar align-title="center" class="head">
        <img wf-src="img/yuyue/back.png" class="headleft" ng-click="back()"/>
        <h1 class="min-title">订单详情</h1>
    </ion-header-bar>
    <ion-content>
        <div class="yyfw shadow-box">
            <img wf-src="img/yuyue/touxiang.png" class="toux"/>
            <label class="ywmc">{{order.title}}</label>
            <label class="ddh">订单号:{{order.invoice}}</label>
            <label class="ywjg">{{order.status}}</label>
        </div>
        <div class="yyfw shadow-box">
            <img wf-src="img/yuyue/date.png" class="wfleft"/>
            <hr class="wfhr"/>
            <label class="startDate"> {{order.start| date:'yyyy-MM-dd'}}</label>
            <label class="fg">-</label>
            <label class="endDate"> {{order.end| date:'yyyy-MM-dd'}}</label>
        </div>
        <div class="yyfw shadow-box">
            <img wf-src="img/yuyue/time.png" class="wfleft"/>
            <hr class="wfhr"/>
            <label id="qt" class="qt" style="color:#000">{{banci}}</label>
        </div>
        <div class="yyfw shadow-box container" ng-repeat="days in dayList">
          <div class="yyfwna">
              <img wf-src="img/tab-orders/detail.png" class="wfleft"/>
              <hr class="wfhr"/>
              <label class="odinfo">{{days.startTime| date:'yyyy-MM-dd'}}</label>
              <span class="ion-ios-checkmark dayok" ng-if="days.state == 2"></span>
              <span class="ion-ios-checkmark" ng-if="days.state == 1&&order.state!=1" ng-click="toSure(days.id)"></span>
          </div>
        </div>
        <div class="yyfw shadow-box">
            <textarea class="beizhu" placeholder="备注..." rows="2"></textarea>
        </div>
        <div class="hjfy">订单金额:&yen;{{order.charge}}</div>
    </ion-content>
    <div class="footer-but" ng-class="'state'+ order.state">
        <span ng-if="order.state <= 2" ng-click="cancel(order.id)">取消预约</span>
        <span ng-if="order.state == 4" ng-click="ahead(order.id)">提前结束</span>
        <span ng-if="order.state == 8" ng-click="goPay(order.id)">支&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;付</span>
    </div>
</ion-view>

